/**
 *
 */

var root = "/hub/v1";

function getTime(){
    const date = new Date();
    const options = {
        year: 'numeric',
        month: '2-digit',
        day: '2-digit',
        hour: 'numeric',
        minute: 'numeric',
        second: 'numeric',
        hour12: false
    };
    const dateTimeFormat = new Intl.DateTimeFormat('zh-CN', options);
    const [
        { value: year },
        ,
        { value: month },
        ,
        { value: day },
        ,
        { value: hour },
        ,
        { value: minute },
        ,
        { value: second }
    ] = dateTimeFormat.formatToParts(date);
    return `${year}`+'-'+`${month}`+'-'+`${day}` + ' ' + `${hour}`+':'+`${minute}`+':'+`${second}`
}
function getWeek(){
    const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
    const date = new Date();
    const dayOfWeek = date.getDay();
    const currentWeekDay = weekDays[dayOfWeek];
    return currentWeekDay
}
